package com.letoo.sso.client.domain;

/**
 * 结果码枚举
 * 
 * @author dengjie
 * 
 */
public enum ResultCode {
	
	/**
	 * 通用的返回码
	 */
	COMMON_SUCCESS("J000000","成功"),
	COMMON_NO_PERMISSION("J000995", "您没有权限进行此操作"),
	COMMON_PARAMETER_ERROR("J000996","请求参数错误"),
	COMMON_BUSINESS_EXCEPTION("J000997","业务异常"),
	COMMON_SYSTEM_EXCEPTION("J000998","服务器暂时无法处理您的请求，请稍候再试。"),
	COMMON_SYSTEM_ERROR("J000999","服务器暂时无法处理您的请求，请稍候再试。"),
	
	WALLET_COMMON_SYSTEM_ERROR("00000000","系统内部错误"),
	WALLET_COMMON_ORDER_HAND_ERROR("00000001","订单已处理"),
	WALLET_COMMON_USER_NOT_EXIST("00000002","用户账户不存在"),
	WALLET_COMMON_USER_BALANCE_FAILED("00000003","用户账户余额不足"),
	WALLET_COMMON_ORDER_NOT_EXIST("00000004","订单不存在"),
	WALLET_COMMON_USER_PWD_ERROR("00000005","用户支付密码错误"),
	APP_COMMON_NOT_SIGNATUR("00000006","签名信息不存在"),
	APP_COMMON_APP_KEY_ERROR("00000007","AppKey错误"),
	APP_COMMON_SIGNATUR_ERROR("00000008","签名验证失败"),
	WALLET_COMMON_TRANS_MONEY_ERROR("00000009","交易金额不能为负数或者零"),
	WALLET_COMMON_PARAMETER_NOT_COMPLEMENT("00000010","请求参数不完整"),
	WALLET_COMMON_UPDATE_PWD_ERROR("00000011","修改密码错误"),
	WALLET_COMMON_USER_EXIST("00000012","用户已经存在"),
	WALLET_COMMON_CREATE_USER_ERROR("00000013","创建用户失败"),
	UPDATE_ADD_CASH_GIFT_AMOUNT_ERROR("00000014","更新账户余额礼券失败"),
	UPDATE_ADD_RECHARGE_AMOUNT_ERROR("00000015","充值更新账户余额失败"),
	WALLET_COMMON_TRANSACTION_NOT_EXIST("00000016","交易记录不存在"),
	WALLET_COMMON_TRANSACTION_CANNOT_CANCEL("00000017","此交易状态不能被取消"),
	WALLET_COMMON_ACCOUNTING_CONSUME_DETAIL_NOT_EXIST("00000018","消费流水记录不存在"),	
	WALLET_DEBU_BALANCE_CONSUME_ERROR("00000019","消费扣减余额失败"),
	WALLET_COMMON_BALANCE_ADD_CREDIT_LESS_THAN_AMOUNT("00000020","消费扣减余额加信用额度不足失败"),
	WALLET_COMMON_BALANCE_ADD_CREDIT_LESS_CASHGIFT_BALANCE_THAN_AMOUNT("00000021","消费扣减余额加信用额度加礼券余额不足失败"),
	WALLET_DEBU_CASH_GIFT_AMOUNT_ERROR("00000022","消费扣减礼券余额失败"),
	WALLET_FREEZE_BALANCE_CONSUME_ERROR("00000023","消费冻结账户余额失败"),
	WALLET_FREEZE_CASH_GIFT_AMOUNT_ERROR("00000024","消费冻结账户礼券余额失败"),
	WALLET_FREEZE_PAYEE_ACCOUNTING_CONSUME_ERROR("00000025","付款人账号消费被冻结"),
	WALLET_FREEZE_ACCOUNTING_RECHARGE_ERROR("00000026","该账号充值被冻结"),
	WALLET_COMMON_CASH_GIFT_NOT_EXIST("00000027","用户账户的礼券信息不存在"),
	;

	/**
	 * 结果码
	 */
	private String code;

	/**
	 * 描述
	 */
	private String description;

	private ResultCode(String code, String description) {
		this.code = code;
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}

}
